import request from "@/utils/request";

//根据科获取属
export function genusAll(id) {
  return request({
    url: "/plant/genus/genusAll",
    method: "GET",
    params: { familyId: id }
  });
}

//根据名称获取属
export function getGenusByIdOrByGenusName(name) {
  return request({
    url: "/plant/genus/getGenusByIdOrByGenusName",
    method: "GET",
    params: { genusName: name }
  });
}
